package org.coone.veteran.basic.contains;

import java.util.ArrayList;
import java.util.List;

public class TestRoot {

	private final static String MY_NAME = "yangpeng";
	
	public static void main(String[] args) {
		List<HashCodeObject> hashcodeObjList = new ArrayList<>();
		
		HashCodeObject obj1 = new HashCodeObject();
		obj1.setName(MY_NAME);
		obj1.setAge(23);
		obj1.setSex(1);
		hashcodeObjList.add(obj1);
		
		HashCodeObject obj2 = new HashCodeObject();
		obj2.setName(MY_NAME);
		obj2.setAge(23);
		obj2.setSex(1);
		
		System.out.println(obj1.equals(obj2));
	}
}
